package com.glasses.manage.web;

import com.glasses.manage.utils.JettyServer;

/**
 * Created by yy on 2017-09-14.
 */
public class StartServer extends JettyServer {
    //本地
    private static final String DEFAULT_WEBAPP_PATH = "../glasses-market/webapp";

    //正式
//    private static final String DEFAULT_WEBAPP_PATH = "../webapp";
    public StartServer(Class<?> springRootConfiguration) {
        super(springRootConfiguration);
    }

    public StartServer(int port, String contextPath, Class<?> springRootConfiguration) {
        super(port, contextPath, DEFAULT_WEBAPP_PATH, springRootConfiguration);
    }


    @Override
    protected void registersServlets() {
        super.registersServlets();
    }

    public static void main(String[] args) throws Exception {
        StartServer server = new StartServer(8080, "/", SpringRootConfiguration.class);
        server.start();
    }

}
